<template>
  <div id="app" :style="style1" style="background-size: 100% 100%">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data(){
    return{
      style1:{
        backgroundImage: 'url(' + require('./assets/backgroundImg.png') + ')'
      }
    }
  },
  created(){
    window.initData = this.initData;
  },
  methods:{
    initData(data){
      if(data.from === 'android'){
        localStorage.setItem('from', 'android')
      } else if(data.from === 'ios') {
        localStorage.setItem('from', 'ios');
      }
    }
  }
}
</script>

<style></style>
